#初次尝试
print(100+100)
a=2*3
print(a)
b=100
print(a+b)
print()

#数字输入
print("c=")
c=input()
print(c)
print()

#字符串输入
a=input("a=")
b=input("b=")
c=a+b
print("a+b=",c)
print()

#认识数据类型
a=100
print(type(a))
a=1.0000000001
print(type(a))
a="Python"
b=str("is awesome")
print(type(a))
print(type(b))
print(a+" "+b)
a=[1,2,"py"]
print(type(a))
b=(1,"1",3)
print(type(b))
c={"class":"techx","number":15,"year":2023}
print(type(c))
print()

#如何弥补浮点型变量计算的精度
from decimal import Decimal
a=Decimal("0.1")
b=Decimal("0.2")
c=a+b
print(c)
print()

#运算符
a=21
b=10
print(a+b)
print(a-b)
print(a*b)
print(a/b)
print(a%b)
print(b**a)
print(a//b)
print()

#比较运算符
print(a>b,a<b,a==b,a>=b,a<=b)
print()

#逻辑运算符
a=1
b=2
print(
a>0 and b>0,
a>0 and b<0,
a>=1 or b<0, 
a==1 or b!=2, 
not a>=0,
a==2 or b<1)
print()

#标准库
import math 
print(math.pow(2, 3), 
math.exp(2), 
math.sqrt(2),
math.log(10,10),
math.sin(0), 
math.pi, 
math.e)
print()
